package com.geuso.xingdutch.sentances;

import java.util.ArrayList;

import com.geuso.xingdutch.R;
import com.geuso.xingdutch.words.Word;

public class SentancesData {
	
	
	private static Word W_DAT = new Word("dat", "[dɑt]", "这", "that", R.raw.w_dat);
	private static Word W_WE = new Word("we", "[wə]", "我们", "we", R.raw.w_we);
	private static Word W_IS = new Word("is", "[i's]", "是", "is", R.raw.w_is);
	private static Word W_DE = new Word("de", "[də]", "该", "the", R.raw.w_de);
	private static Word W_IK = new Word("ik", "[ɪk]", "我", "I", R.raw.w_ik);
	private static Word W_VAN = new Word("van", "[vɑn]", "的", "of", R.raw.w_van);
	private static Word W_EEN = new Word("een", "[en]", "一", "a", R.raw.w_een);
	private static Word W_JIJ = new Word("jij", "[jɛi]", "你", "you", R.raw.w_jij);
	
	
	public static ArrayList<Sentance> sentances = new ArrayList<Sentance>(){
		private static final long serialVersionUID = 445192279947566075L;

	{
		
		add(new Sentance("Kunt u dat uitleggen?", "[ˈkʏnt] [y] [dɑt] [ˈœytlɛxə(n)]", "您能解释一下吗？", "Can you explain that?", R.raw.sen_kunt_u_dat_uitleggen)
				.add_sentance_part(new Word("kunt", "[ˈkʏnt]", "可以", "can", R.raw.w_kunt))
				.add_sentance_part(new Word("u", "[y]", "您", "you", R.raw.w_u))
				.add_sentance_part(W_DAT)
				.add_sentance_part(new Word("uitleggen", "[ˈœytlɛxə(n)]", "说明", "explain", R.raw.w_uitleggen))
				);
		
		add(new Sentance("Vindt jij mij leuk?", "['vɪnt] [jɛi] [mɛi] [løk]", "你喜欢我吗？", "Do you like me?", R.raw.sen_vindt_jij_mij_leuk)
				.add_sentance_part(new Word("vindt", "['vɪnt]", "思考", "think", R.raw.w_vindt))
				.add_sentance_part(W_JIJ)
				.add_sentance_part(new Word("mij", "[mɛi]", "我", "me", R.raw.w_mij))
				.add_sentance_part(new Word("leuk", "[løk]", "喜欢", "like", R.raw.w_leuk))
				);
		
		add(new Sentance("Waar gaan we heen?", "[war] [xan] [wə] [hen]", "我们要去哪里？", "Where are we going?", R.raw.sen_waar_gaan_we_heen)
				.add_sentance_part(new Word("waar", "[war]", "哪里", "where", R.raw.w_waar))
				.add_sentance_part(new Word("gaan", "[xan]", "去", "going", R.raw.w_gaan))
				.add_sentance_part(W_WE)
				.add_sentance_part(new Word("heen", "[hen]", "至", "to", R.raw.w_heen))
				);
		
		add(new Sentance("Waar is dat voor?", "[war] [i's] [dɑt] [vor]", "那是什么呢？", "What's that for?", R.raw.sen_waar_is_dat_voor)
				.add_sentance_part(new Word("waar", "[war]", "什么", "what", R.raw.w_waar))
				.add_sentance_part(W_IS)
				.add_sentance_part(W_DAT)
				.add_sentance_part(new Word("voor", "[vor]", "为", "for", R.raw.w_voor))				
				);
		
		add(new Sentance("Ben je moe?", "[bɛn] [jə] [mu]", "你累了吗？", "Are you tired?", R.raw.sen_ben_je_moe)
				.add_sentance_part(new Word("ben", "[bɛn]", "是", "are", R.raw.w_ben))
				.add_sentance_part(new Word("je", "[jə]", "你", "you", R.raw.w_je))
				.add_sentance_part(new Word("moe", "[mu]", "累", "tired", R.raw.w_moe))
				);
		
		add(new Sentance("Dat is een mooi verhaal", "[dɑt] [i's] [en] [moj] [vərˈhal]", "这是一个美好的故事", "That's a nice story", R.raw.sen_dat_is_een_mooi_verhaal)
				.add_sentance_part(W_DAT)
				.add_sentance_part(W_IS)
				.add_sentance_part(W_EEN)
				.add_sentance_part(new Word("mooi", "[moj]", "美丽", "beautiful", R.raw.w_mooi))
				.add_sentance_part(new Word("verhaal", "[vərˈhal]", "故事", "story", R.raw.w_verhaal))
				);
		
		add(new Sentance("Daar heb ik nog nooit van gehoord", "[dar] [ˈhɛb] [ɪk] [nɔx] [nojt] [vɑn] [ɣəˈhɔːrt]", "我从来没有听说过", "I've never heard of that", R.raw.sen_daar_heb_ik_nog_nooit_van_gehoord)
				.add_sentance_part(new Word("daar", "[dar]", "那", "that", R.raw.w_daar))
				.add_sentance_part(new Word("heb", "[ˈhɛb]", "有", "have", R.raw.w_heb))
				.add_sentance_part(W_IK)
				.add_sentance_part(new Word("nog", "[nɔx]", "但", "yet", R.raw.w_nog))
				.add_sentance_part(new Word("nooit", "[nojt]", "决不", "never", R.raw.w_nooit))
				.add_sentance_part(W_VAN)
				.add_sentance_part(new Word("gehoord", "[ɣəˈhɔːrt]", "听说", "heard", R.raw.w_gehoord))
				);
		
		
		
		add(new Sentance("Waar is de badkamer?", "[war] [i's] [də] [ˈbɑtkamər]", "厕所在哪里？", "Where is the bathroom?", R.raw.sen_waar_is_de_badkamer)
				.add_sentance_part(new Word("waar", "[war]", "哪里", "where", R.raw.w_waar))
				.add_sentance_part(W_IS)
				.add_sentance_part(W_DE)
				.add_sentance_part(new Word("badkamer", "[ˈbɑtkamər]", "浴室", "bathroom", R.raw.w_badkamer))
				);
		
		
		add(new Sentance("Is dit een boek?", "[i's] [dɪt] [een] [buk]", "这是一本书吗？", "Is this a book?", R.raw.sen_is_dit_een_boek)
				.add_sentance_part(W_IS)
				.add_sentance_part(new Word("dit", "[dɪt]", "这", "this", R.raw.w_dit))
				.add_sentance_part(W_EEN)
				.add_sentance_part(new Word("boek", "[buk]", "书", "book", R.raw.w_boek))
				);
				
		
		add(new Sentance("Kan jij Nederlands spreken?", "[kɑn] [jɛi] [ˈnedərlɑn(t)s] [ˈsprekə(n)]", "你能说荷兰语？", "Can you speak Dutch?", R.raw.sen_kan_jij_nederlands_spreken)
				.add_sentance_part(new Word("kan", "[kɑn]", "可以", "can", R.raw.w_kan))
				.add_sentance_part(W_JIJ)
				.add_sentance_part(new Word("Nederlands", "[ˈnedərlɑn(t)s]", "菏兰语", "Dutch", R.raw.w_nederlands))
				.add_sentance_part(new Word("spreken", "[ˈsprekə(n)]", "说话", "speak", R.raw.w_spreken))
				);
		
		
		
		
		
		
		add(new Sentance("Ik hou van jou", "[ɪk] [ˈhɑu] [vɑn] [jɑu]", "我爱你", "I love you", R.raw.sen_ik_hou_van_jou)
				.add_sentance_part(W_IK)
				.add_sentance_part(new Word("hou", "[ˈhɑu]", "爱", "love", R.raw.w_hou))
				.add_sentance_part(W_VAN)
				.add_sentance_part(new Word("jou", "[jɑu]", "你", "you", R.raw.w_jou))
				);
		
		
		
	}};
	
	
	public static ArrayList<Word> getWordsWithSentance(String dutch_sentance){
		for (Sentance s : sentances){
			if (s.getDutch().equals(dutch_sentance)){
				return s.getSentance_part();
			}
		}
		return new ArrayList<Word>();
		
	}
	
	
}
